<template>
  <el-dialog title="预览凭证" :visible.sync="isCheck" :before-close="closePopUp">
    <el-table
      :data="checkForm"
      border
      style="width: 100%">
      <el-table-column
        prop="toLoanSign"
        label="借贷标志"
        width="180">
      </el-table-column>
      <el-table-column
        prop="entryName"
        label="分录名称"
        width="180">
      </el-table-column>
      <el-table-column
        prop="money"
        label="金额(元)">
      </el-table-column>
      <el-table-column
        prop="bookingTime"
        label="记账日期">
      </el-table-column>
      <el-table-column
        prop="remarks"
        label="摘要">
      </el-table-column>
    </el-table>
    <el-pagination
      @size-change="popupHandleSizeChange"
      @current-change="popupHandleCurrentChange"
      :current-page.sync="showPage.currentPage"
      :page-size="10"
      layout="total, prev, pager, next"
      :total="showPage.pageTotal">
    </el-pagination>
  </el-dialog>
</template>

<script>
export default {
  props: ['isCheck', 'checkForm'],
  data() {
    return {
      showPage: {
        // 第几页
        currentPage: 1,
        // 总条数
        pageTotal: 10
      }
    }
  },
  methods: {
    closePopUp() {
      this.$emit('closePopUp')
    },
    popupHandleSizeChange() {

    },
    popupHandleCurrentChange() {

    }
  }
}
</script>

<style scoped>

</style>
